package cn.zhf.shop.mapper;
import cn.zhf.shop.entity.search.OrganizationSearch;
import org.apache.ibatis.annotations.Param;


import cn.zhf.shop.entity.organization.OrgOverview;
import cn.zhf.shop.entity.organization.Organization;
import org.apache.ibatis.annotations.Mapper;import java.util.List;

@Mapper
public interface OrganizationMapper {
    int deleteByPrimaryKey(Integer orgId);

    int insert(Organization record);

    int insertSelective(Organization record);

    Organization selectByPrimaryKey(Integer orgId);

    int updateByPrimaryKeySelective(Organization record);

    int updateByPrimaryKey(Organization record);

    List<Organization> selectAll();

    List<Organization> selectByOrgName(String orgName);

    List<Organization> selectByOrgType(String orgType);

    OrgOverview selectByHead2(int head);

    OrgOverview selectByHead3(int head);

    List<Integer> selectOrgIdByReferenceId(@Param("referenceId")Integer referenceId);

    List<Organization> selectByReferenceId(@Param("referenceId")Integer referenceId);

    List<Organization> selectBySearch1( @Param("orgName")String orgName, @Param("orgType")Integer orgType);

    List<Organization> selectBySearch2(String str);

    List<Organization> selectByOrgNameAndOrgTypeAndContactsAndHeadName(OrganizationSearch organizationSearch);

    List<Organization>  selectByOrgType2(int orgType);
}